class Solution(object):
    def plusOne(self, digits):
        """
        :type digits: List[int]
        :rtype: List[int]
        """


        m = 0
        a= []
        for i in range(len(digits)):
            m += digits[i] * pow(10, len(digits) - 1 - i)
        m+=1
        if m==2:
            return [1]
        else:
            for i in str(m):
                print(i)
                a.append(int(i))
            return a



a =[1]

s = Solution()
h= s.plusOne(a)
print(h)